<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .bw{
            text-align: center;
        }

        .bw a{
            display: inline-block;
            width: 120px;
            height: 50px;
             /* 让文本垂直居中，设置行高 */
             line-height: 50px;
             color: green;
             text-decoration: none;
             /* 设置背景 */
             background-image: url(bg.png);
        }

        .bw a:hover{
            background-image: url(bgc.png);
        }
    
    
    </style>
</head>
<body>
    <div class="bw" >
        <a href="">公司首页</a>
        <a href="">商品页面</a>
        <a href="">公司简介</a>
        <a href="">人才招聘</a>
        <a href="">对外合作</a>
    </div>
</body>
</html>